package org.flowable.ui.application;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jmx.JmxAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * 启动类
 *
 * @author: admin
 * @date: 2024年10月31日 11:17
 * @version: 1.0
 */
@SpringBootApplication(exclude = JmxAutoConfiguration.class)
public class FlowUiApplication extends SpringBootServletInitializer {
    private static final Logger logger = LoggerFactory.getLogger(FlowUiApplication.class);

    public static void main(String[] args) {
        SpringApplication.run(FlowUiApplication.class, args);
        logger.info("====================流程UI服务启动成功！=======================");
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(FlowUiApplication.class);
    }
}
